package com.qunji.cpsdistribution.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sjq
 * @since 2020-07-23
 */
public class Commodity extends Model<Commodity> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @TableId(value = "commodity_id", type = IdType.AUTO)
    private Long commodityId;
    /**
     * 商品名称
     */
    private String commodityName;
    /**
     * 商品价格
     */
    private BigDecimal commodityMoney;
    /**
     * 商品定价
     */
    private BigDecimal commodityPricing;
    /**
     * 商品信息
     */
    private String commodityMsg;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 下架时间
     */
    private Date launchTime;
    /**
     * 修改时间
     */
    private Date updateTime;
    /**
     * 规范id
     */
    private Long guidanceId;
    /**
     * 产品分类id
     */
    private Long productCategoryId;
    /**
     * 商品图片（使用json）数据类型longtext
     */
    private String commodityImg;
    /**
     * 入住商家id
     */
    private Long merchantEnterId;
    /**
     * 商品视频
     */
    private String commodityMv;


    public Long getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Long commodityId) {
        this.commodityId = commodityId;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public BigDecimal getCommodityMoney() {
        return commodityMoney;
    }

    public void setCommodityMoney(BigDecimal commodityMoney) {
        this.commodityMoney = commodityMoney;
    }

    public BigDecimal getCommodityPricing() {
        return commodityPricing;
    }

    public void setCommodityPricing(BigDecimal commodityPricing) {
        this.commodityPricing = commodityPricing;
    }

    public String getCommodityMsg() {
        return commodityMsg;
    }

    public void setCommodityMsg(String commodityMsg) {
        this.commodityMsg = commodityMsg;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLaunchTime() {
        return launchTime;
    }

    public void setLaunchTime(Date launchTime) {
        this.launchTime = launchTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getGuidanceId() {
        return guidanceId;
    }

    public void setGuidanceId(Long guidanceId) {
        this.guidanceId = guidanceId;
    }

    public Long getProductCategoryId() {
        return productCategoryId;
    }

    public void setProductCategoryId(Long productCategoryId) {
        this.productCategoryId = productCategoryId;
    }

    public String getCommodityImg() {
        return commodityImg;
    }

    public void setCommodityImg(String commodityImg) {
        this.commodityImg = commodityImg;
    }

    public Long getMerchantEnterId() {
        return merchantEnterId;
    }

    public void setMerchantEnterId(Long merchantEnterId) {
        this.merchantEnterId = merchantEnterId;
    }

    public String getCommodityMv() {
        return commodityMv;
    }

    public void setCommodityMv(String commodityMv) {
        this.commodityMv = commodityMv;
    }

    @Override
    protected Serializable pkVal() {
        return this.commodityId;
    }

    @Override
    public String toString() {
        return "Commodity{" +
        ", commodityId=" + commodityId +
        ", commodityName=" + commodityName +
        ", commodityMoney=" + commodityMoney +
        ", commodityPricing=" + commodityPricing +
        ", commodityMsg=" + commodityMsg +
        ", createTime=" + createTime +
        ", launchTime=" + launchTime +
        ", updateTime=" + updateTime +
        ", guidanceId=" + guidanceId +
        ", productCategoryId=" + productCategoryId +
        ", commodityImg=" + commodityImg +
        ", merchantEnterId=" + merchantEnterId +
        ", commodityMv=" + commodityMv +
        "}";
    }
}
